package cn.deepxi.base.service;

import cn.deepxi.base.query.BaseQuery;

import cn.deepxi.utils.QueryResult;

import java.util.List;

public interface IBaseService <T>{
    //基础查询
    void save(T d);

    void remove(Long id);

    void update(T d);

    T loadById(Long id );

    List<T> loadAll();
    //高级查询和分页
    QueryResult<T> queryPage(BaseQuery query);
}
